<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
    <head>
        <title>美业红</title>
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0,maximum-scale=1">
        <link href="http://cdn.bootcss.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
        <link href="/public/css/main.css" rel="stylesheet">
        <script type='text/javascript' src='/public/js/jquery-3.1.1.min.js'></script>
        <script type="text/javascript" src='/public/js/jquery.validate.js'></script>
        <script type="text/javascript" src='/public/js/main/main.js'></script>
        <script>
            var _hmt = _hmt || [];
            (function () {
                var hm = document.createElement("script");
                hm.src = "//hm.baidu.com/hm.js?8d43b5b5d798921b66d689f7a792e6e2";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(hm, s);
            })();
        </script>
        <script type="text/javascript">
            document.domain = '<?php echo _DOMAIN_ALL_;?>';
        </script>
        <link rel="shortcut icon" type="image/ico" href="/favicon.ico">
    </head>
    <body style="background-color: #f4f4f4;">
        <div class="navigation">
            <div class='navlogo'>
            <a href='/'><img class='_navlogo' src="/public/images/logo.png"></a>
            </div>
            <div class='navson'>
                <ul class='fr'>
                <li><a href='/' class='anchor'><b>主页</b></a></li>
                <li><a href="/home/store" class='anchor'><b>店铺</b></a></li>
                <li><a href="/home/barber" class='anchor'><b>成员</b></a></li>
                <li><a href="/home/action" class='anchor'><b>活动</b></a></li>
                <li><a href="/home/order" class='anchor'><b>订单</b></a></li>
                <li><a href="/home/coupon" class='anchor'><b>优惠卷</b></a></li>
                <li><a href="/home/goods" class='anchor'><b>商品</b></a></li>
                </ul>
           </div>
        </div>
        <div style='margin-top:80px;width:100%'>
            <img class='_navlogo' src="/public/images/contentlogo.png" style='width:100%;height:100px'>
        </div>
        <div class='container'>
            <div class='_main'>
            <div class='_line'></div> 
<div class="_contro">
<?php if($coupon['status']==1){?>
    <a href="/home/coupon/" class="_a"><font class="_font">返回</font></a>
<?php }else{?>  
    <a href="/home/coupon/release?coupon_id=<?php echo $coupon['id'];?>" onclick='' class="_a"><font class="_font maskLayer">发布</font></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    <a href="/home/coupon/create?coupon_id=<?php echo $coupon['id'];?>" class="_a"><font class="_font">返回</font></a>
<?php }?>
</div>
<div class='_cut'></div>
    <div style='margin-left:30rem;margin-right:45rem;'>
        <div style='text-align:center;font-size:2.2rem;'><?php echo $coupon['name'] ?></div>
        <div class='_line'></div>
        <img src="<?php echo $coupon['style'];?>" />
    </div>

    <div style='margin-left:45rem;font-size:2.5rem;'>
        共 <span style='color:red'><?php if($coupon['num'] == -1){ echo '不限';}else{echo $coupon['num'];}?></span> 张
    </div>            
    <div class='_line' ></div>
    <div style='margin-left:30rem;' > 
        <div>所属门店：<?php echo $store['name'];?></div>
        <div>开始时间：<?php echo date('Y-m-d',$coupon['start_time']); ?> </div>
        <div>结束时间：<?php echo date('Y-m-d',$coupon['end_time']); ?> </div>
        <div>说明：<?php echo $coupon['intro']; ?></div>
    </div> 
</div>
</div>
<div class='_line'></div>
<div class="newfooter">
         ©2015-2017 All Rights Reserved ( 京ICP备15010043号 ) 
</div>
<div id='mask_layer' style="text-align: center;width:100%;height:100%;overflow:hidden;filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#8E8E8E',endColorstr='##8E8E8E');
    background-color:rgba(255, 255, 255, 0.4);position:fixed; _position:absolute; top:0;left:0; z-index:5000;display:none ">
    <div style="padding-top: 20%"><h1><b>loading<span id="_loading"></span></b></h1></div>
</div>
    </body>
</html>